package com.baseframe.score.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baseframe.mybatis.utils.PageInfo;
import com.baseframe.score.entity.SnsScoreUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baseframe.score.entity.request.SnsScoreUserRequest;
import com.baseframe.score.entity.vo.SnsScoreUserVO;
import com.baseframe.tool.result.R;

/**

* @description 针对表【sns_score_user(用户积分表)】的数据库操作Service
* @createDate 2023-06-26 00:45:34
*/
public interface SnsScoreUserService extends IService<SnsScoreUser> {

    R<Object> changeScore(SnsScoreUserRequest request);

    Page<SnsScoreUserVO> snsScoreUserPage(PageInfo pageInfo, SnsScoreUserRequest request);

    SnsScoreUserVO getUserScoreDetails();

    boolean increaseScore(Long userId, Integer rewardValue);
}
